import { createApp } from 'vue'
import '@/style.css'
import App from '@/App.vue'

// element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// vue-router
import router from '@/router'

// pinia
import { createPinia } from 'pinia'

// icon-pack
import '@icon-park/vue-next/styles/index.css'

const app = createApp(App)

const pinia = createPinia()
app.use(pinia)
app.use(router)
app.use(ElementPlus)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
	app.component(key, component)
}

app.mount('#app')
